using NHibernate.Criterion;
using NHibernate.Type;
using TelerikMvcGridCustomBindingHelper.Util;

namespace TelerikMvcGridCustomBindingHelper.NHibernate.Projections
{
    public class ArithmeticOperatorProjection : OperatorProjection
    {
        public ArithmeticOperatorProjection(SqlOperator op, IType returnType, params IProjection[] args)
            : base(op.GetStringValue(), returnType, args) { }

        protected override string[] AllowedOperators
        {
            get { return new[] { "+", "-", "*", "/", "%" }; }
        }
    }
}